import 'package:flutter/material.dart';
import 'package:x3_base_core/x3_base_core.dart';

/// author：william on 2021/3/15 16:47
/// email：362661044@qq.com
class BaseImageAddButton extends StatelessWidget {
  final VoidCallback onTap;

  const BaseImageAddButton({Key key, @required this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 72.0,
      height: 72.0,
      decoration: new BoxDecoration(
        color: Theme.of(context).scaffoldBackgroundColor,
        borderRadius: BorderRadius.circular(4),
      ),
      child: IconButton(
        onPressed: onTap,
        icon: Icon(BaseIconData.x3Add, size: 40.0),
      ),
    );
  }
}
